package com.hengxinguotong.zhihuichengjian.utils.map;

import com.amap.api.maps.model.LatLng;
import com.hengxinguotong.zhihuichengjian.bean.MapBuildingBean;

/**
 * Created by yiyi.qi on 16/10/10.
 */

public class RegionItem<T extends MapBuildingBean> implements ClusterItem {
    private LatLng mLatLng;

    private String mTitle = "test";


    public T getData() {
        return mData;
    }

    public void setData(T data) {
        mData = data;
    }

    private T mData;

    public RegionItem(LatLng latLng, String title, T data) {
        mLatLng = latLng;
        mTitle = title;
        mData = data;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }


    public LatLng getLatLng() {
        return mLatLng;
    }

    public void setLatLng(LatLng latLng) {
        mLatLng = latLng;
    }



    public RegionItem(LatLng latLng) {
        mLatLng=latLng;
    }
    public RegionItem(LatLng latLng, String title) {
        mLatLng=latLng;
        mTitle = title;
    }

    @Override
    public LatLng getPosition() {
        return mLatLng;
    }

}
